import http from './http'

const requestPrefix = '/manage/system/dict'

// 基础增删改查
export const table = (data) => {
  return http.post(`${requestPrefix}/tables`, data)
}
export const show = (data) => {
  return http.post(`${requestPrefix}/show`, data)
}
export const list = (data) => {
  return http.post(`${requestPrefix}/list`, data)
}
export const save = (data) => {
  return http.post(`${requestPrefix}/save`, data)
}
export const del = (data) => {
  return http.post(`${requestPrefix}/delete`, data)
}
export const logicalDel = (data) => {
  return http.post(`${requestPrefix}/logicalDelete`, data)
}
export const options = (data) => {
  return http.post(`${requestPrefix}/options`, data)
}
export const changeStatus = (data) => {
  return http.post(`${requestPrefix}/changeStatus`, data)
}

export const saveItems = (type, data) => {
  return http.post(`${requestPrefix}/saveItems/${type}`, data)
}
